package ace.module.captcha.sdk.core.feign.impl;

import ace.cmp.openfeign.security.oauth2.core.config.FeignInternalServerOauth2SecurityConfig;
import ace.module.captcha.sdk.core.constant.SdkConstant;
import ace.module.captcha.sdk.core.feign.CaptchaItemFeignApi;
import ace.module.common.api.annotation.ApiRemoteProxyPriority;
import org.springframework.cloud.openfeign.FeignClient;

/**
 * 验证码 rpc feign.
 *
 * @author Caspar
 */
@FeignClient(
    name = "${spring.cloud.openfeign.client.config.captchaItemFeign.name:" + SdkConstant.FEIGN_SERVICE_NAME + "}",
    contextId = "captchaItemFeign",
    path = CaptchaItemFeign.PATH,
    configuration = FeignInternalServerOauth2SecurityConfig.class,
    primary = false
)
@ApiRemoteProxyPriority
public interface CaptchaItemFeign extends CaptchaItemFeignApi {

  String PATH = "${spring.cloud.openfeign.client.config.captchaItemFeign.path:/captcha/captcha-item/rpc}";
}